package testsgraphicinterface;


import javax.swing.JFrame;
import javax.swing.JLabel;
import graphicinterface.JPanelWithBackgroundImage;
import graphicinterface.TextLabelCreator;

public class TestPanelWithBackground 
{
	public static void main(String args[])
	{
		JPanelWithBackgroundImage panel = new JPanelWithBackgroundImage("backgroundbookworm.jpg");
		
		JLabel labelText = TextLabelCreator.createStyledTextlabel("this label is just for tests, although it can be used in program");
		panel.add(labelText);
		JFrame frame = new JFrame();
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.add(panel);
		frame.pack();
		frame.setVisible(true);
	}

}
